package news.example;

/**
 * @author JiangJ
 * @date 2022/3/4 15:05
 */
public class NewsRes {
    /**
     * 新闻资源路径id
     */
    int id;
    /**
     * 新闻资源路径
     */
    String respath;
    /**
     * 新闻id
     */
    int newsid;
    /**
     * 新闻类型
     */
    String type;
    /**
     * 上传时间
     */
    String cretetime;

    public NewsRes(int id, String respath, int newsid, String type, String cretetime) {
        this.id = id;
        this.respath = respath;
        this.newsid = newsid;
        this.type = type;
        this.cretetime = cretetime;
    }

    public NewsRes() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRespath() {
        return respath;
    }

    public void setRespath(String respath) {
        this.respath = respath;
    }

    public int getNewsid() {
        return newsid;
    }

    public void setNewsid(int newsid) {
        this.newsid = newsid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCretetime() {
        return cretetime;
    }

    public void setCretetime(String cretetime) {
        this.cretetime = cretetime;
    }

    @Override
    public String toString() {
        return "Res{" +
                "id=" + id +
                ", respath='" + respath + '\'' +
                ", newsid=" + newsid +
                ", type='" + type + '\'' +
                ", cretetime='" + cretetime + '\'' +
                '}';
    }
}
